/** 
 * 登出
*/
export const logout = () => {
	app.isLogin = "noLogin"
	delete app.token
	uni.navigateTo({
		url: '/pages/login/login.vue'
	})
	uni.alert('用户未登录或登录已失效')
}

/** 
 * 登录
*/
export const login = () => {
	const app = getApp()
	app.token = 'response.accessToken';
	app.isLogin = "isLogin"
	wx.setStorageSync('token', 'response.accessToken')
}